package 例子;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import 例子.甜点.I饭后甜点;
import 例子.配置.总Conf;
import 例子.食客.I食客;

public class 吃饭后甜点Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(总Conf.class);

//        I饭后甜点 甜点 = context.getBean(I饭后甜点.class);
//        甜点.吃起来();

        I食客 食客 = context.getBean(I食客.class);
        食客.吃甜点();
        context.close();
    }
}
